package com.springboot.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Entity
@Data
public class BtTask {
    @Id
    private String id;
    private String announcer;       //声明者
    private String receiver;        //接收者
    private Integer status;
    private String creator;         //创建者
    private Integer annoRead;       //声明者是否阅读
    private Integer receRead;       //接收者是否阅读
    private Date createTime;
    private String fileIds;

    @ManyToOne(fetch= FetchType.LAZY)
    @JoinColumn(name = "demand_id")
    @JsonIgnore
    private BtDemand demand;        //需求
}
